# author : sb hwang
# date : 2012.05.15
#
#

CC= arm-linux-gcc
TARGET = stateM
INCLUDE += -I. -I../include/
CFLAGS= $(INCLUDE) -g -Wall -D_REENTRANT
LDFLAGS= -lpthread 

OBJS= main.o touch.o bmplib.o drawbmp.o

all: $(TARGET)

$(TARGET) : $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^

%.o:%.c
	$(CC) -c $(CFLAGS) -o $@ $<

#touch.o: touch.h
#main.o : touch.h drawbmp.h
#bmplib.o : bmplib.h
#drawbmp.o : bmplib.h drawbmp.h


clean:
	rm -f $(OBJS) stateM
